<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>表单绑定-文本框text（v-model的原理）</title>
  <script type="text/javascript" src="vue.js"></script>
</head>
   <body>
      <div id="app">  
         <input v-bind:value="name" v-on:input="name = $event.target.value" placeholder="请输入姓名">
         <p>{{ name }} 您好！</p>
      </div>
      <script>
        let vm = new Vue({
           el:"#app",
           data:{
               name:""
           }
        })
      </script>
   </body>
</html>